package repo

import (
	models "gorm_demo/pkg/models"
	dao "gorm_demo/pkg/dao"
)

type AuthUserRepository interface {
	List() (l []*models.AuthUser)
	GetById(id int32) (*models.AuthUser, error)
	Create(m models.AuthUser) (*models.AuthUser, error)
	Update(m models.AuthUser, updates map[string]interface{}) (*models.AuthUser, error)
	Delete(m models.AuthUser) error
}

func NewAuthUserRepository() AuthUserRepository {
	return dao.AuthUserDao{}
}

